﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Configuration;
using Ext.Net;
using System.Data.OracleClient;

public partial class Form_Test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Load_Proc();
    }

    private OracleConnection con;

    protected void Load_Proc()
    {
        con = new OracleConnection(ConfigurationManager.ConnectionStrings["DefaultConnection"].ToString());
        OracleCommand cmd = new OracleCommand()
        {
            Connection = con,
            CommandType = CommandType.StoredProcedure,
            CommandText = "pk_demo.procedure_OneOutPara"
        };

        OracleParameter para = new OracleParameter("outPara1", OracleType.NVarChar, 200);
        para.Direction= ParameterDirection.Output;
        cmd.Parameters.Add(para);

        con.Open();
        cmd.ExecuteNonQuery();
        con.Close();

        Display.Text = cmd.Parameters["outPara1"].Value.ToString();
    }
}